@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('/res/font/AlibabaPuHuiTi.woff2') format('woff2');
  }


body {
    background-color: #000000;
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size:16px;
}


/* 技术栈页面特定样式 */
.top-background {
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-sign-0 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.top-sign-1 {
    font-size: 1.2rem;
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-container {
    background-color: #fff;
    padding: 30px 0;
    margin: 0 10%;
    border-radius: 5px;
}
/* 搜索框样式 */
.search-section {
    margin: 10px auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    padding: 0 10px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #ff8a86;
}

.search-button {
    padding: 8px 15px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #fff;
    color: #000000;
    transform: translateY(-2px);
}

.tags-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0 25px 0;
    max-width: 1000px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.tags-container, .titles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.tag.active {
    background-color: #ff7e79;
}

.blog-list {
    margin: auto 40px;
}

.blog-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .blog-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 95%;
        padding: 0 10px;
    }
    
    .tags-section {
        width: 100%;
        padding: 0 10px;
    }
    
    .blog-list {
        width: 100%;
        padding: 0 16px;
    }
    
    .blog-list ul {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-list li {
        padding: 24px 28px;
    }
}

.blog-list li {
    border: none;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.blog-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.blog-list li:hover::before {
    transform: translateX(0);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.4;
    height: auto;
    max-height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: -0.01em;
}

.blog-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
    height: auto;
    max-height: 1.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-weight: 400;
}

.blog-introduce {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #333;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.blog-date {
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    justify-content: flex-start;
}

.blog-tag {
    border-radius: 20px;
    text-align: center;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 4px 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid transparent;
    flex-shrink: 0;
    white-space: nowrap;
}

.blog-list li:hover .blog-tag {
    background-color: #f9fafb;
    color: #4b5563;
}

.blog-summary {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.page-number.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

.goto-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.goto-text {
    margin-right: 5px;
    font-size: 0.9rem;
}

.page-input {
    width: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}